Skip to content

perf: speedup date_part isodow by using DayOfWeekMonday1#23491

Queued
theirix wants to merge 2 commits into
apache:mainfrom
theirix:perf-date_part-isodow
Queued

perf: speedup date_part isodow by using DayOfWeekMonday1#23491
theirix wants to merge 2 commits into
apache:mainfrom
theirix:perf-date_part-isodow

Conversation

@theirix

@theirix theirix commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Optimise date_part to avoid extra operations during isodow - Arrow's DayOfWeekMonday1 is now available

What changes are included in this PR?

Switch from manual dow calculation to a built-in DayOfWeekMonday1

Are these changes tested?

  • Covered by existing SLTs
  • Benched by recently introduced benchmarks

Are there any user-facing changes?

@github-actions github-actions Bot added the functions Changes to functions implementation label Jul 12, 2026
@theirix theirix marked this pull request as ready for review July 12, 2026 08:40

@nuno-faria nuno-faria left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @theirix, I measured a 38% improvement in a micro benchmark!

@theirix

theirix commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @theirix, I measured a 38% improvement in a micro benchmark!

Thank you for measuring this, it's a good result!

@Jefffrey Jefffrey added this pull request to the merge queue Jul 14, 2026
@Jefffrey

Copy link
Copy Markdown
Contributor

thanks @theirix & @nuno-faria

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants